package scene01_Home;

import android.graphics.Bitmap;
import android.graphics.Paint;
import baseClass.Global;
import baseClass.Sprite_Touch;
import mainSrc.MainDirector;

public class Sprite_ButtonEditorPrev
  extends Sprite_Touch
{
  public Sprite_ButtonEditorPrev(int paramInt1, int paramInt2, int paramInt3, float paramFloat1, float paramFloat2)
  {
    super(paramInt1, paramInt2, paramInt3, paramFloat1, paramFloat2);
  }
  
  public boolean Touch_Check(float paramFloat1, float paramFloat2)
  {
    boolean bool = false;
    if (this.bit_img != null)
    {
      if ((paramFloat1 >= this.position_x * Global.GetInstance().dnst_w - this.bit_img.getWidth() * this.position_ax * 3.0F) && (paramFloat2 >= this.position_y * Global.GetInstance().dnst_h - this.bit_img.getHeight() * this.position_ay * 2.0F) && (paramFloat1 <= this.position_x * Global.GetInstance().dnst_w - this.bit_img.getWidth() * (this.position_ax - 1.0F) * 3.0F) && (paramFloat2 <= this.position_y * Global.GetInstance().dnst_h - this.bit_img.getHeight() * (this.position_ay - 1.0F) * 2.0F)) {
        bool = true;
      }
    }
    else {
      return bool;
    }
    this.DownAndUp = false;
    Touch_RangeOut();
    return false;
  }
  
  public void Touch_Down(float paramFloat1, float paramFloat2, MainDirector paramMainDirector)
  {
    this.paint.setAlpha(100);
  }
  
  public void Touch_DownAndUp(float paramFloat1, float paramFloat2, MainDirector paramMainDirector)
  {
    this.paint.setAlpha(255);
    paramMainDirector.m_Scene01.m_Layer04.bTxtChanger = false;
    if (paramMainDirector.m_Scene01.m_Layer04.spd_Next.iCurrentLevel > 0)
    {
      paramMainDirector = paramMainDirector.m_Scene01.m_Layer04.spd_Next;
      paramMainDirector.iCurrentLevel -= 1;
    }
  }
  
  public void Touch_RangeOut()
  {
    this.paint.setAlpha(255);
  }
}


/* Location:           D:\Tool\AndroidKiller_v1.3.1\projects\petdesigner\ProjectSrc\classes-dex2jar.jar
 * Qualified Name:     scene01_Home.Sprite_ButtonEditorPrev
 * JD-Core Version:    0.7.0.1
 */